package com.imooc.oa.dao;

import com.imooc.oa.entity.LeaveForm;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface LeaveFormDao {
    public void insert(LeaveForm form);
    //注解名就相当于Map的键名，返回类型是List集合，但是集合元素类型都是Map，素以在Dao中resultType是Mao
    public List<Map> selectByParams(@Param("pf_state") String pfState,
                                    @Param("pf_operator_id") Long operatorId);
    public LeaveForm selectById(Long formId);
    public void update(LeaveForm leaveForm);
}
